import Reac,{ Component } from "react";
import { createMaterialTopTabNavigator } from "react-navigation";
import PersonalCenter from "../pages/PersonalCenterT/index";
import ThreadDynamic from "../pages/PersonalCenterT/ThreadDynamic";

const createTab  = createMaterialTopTabNavigator({
    PersonalCenter:{
        screen:PersonalCenter,
        navigationOptions: {
            tabBarLabel:'个人中心',
        }
    },
    ThreadDynamic:{
        screen:ThreadDynamic,
        navigationOptions: {
            tabBarLabel:'跟帖动态',
        }
    }
    },
    {
        tabBarOptions:{
            inactiveTintColor:'#494949',     //-"非活动" 选项卡的标签和图标颜色。
            activeTintColor:'#d04542', //活动选项卡的标签和图标颜色。
            style:{   //选项卡栏的样式对象。
                backgroundColor:'white',
                borderBottomColor:'white',
                borderBottomWidth: .5,
            },
            indicatorStyle:{  //选项卡指示器的样式对象（选项卡底部的行）。
                backgroundColor:'#d04542',
                fontSize:15,
                width: 50,
                marginLeft:75,
                justifyContent: 'center',
                boxShadow:'none',
            }
        }
    });

export default createTab;